module.exports = {
  lintOnSave: false,
  configureWebpack: config => {
    if (process.env.NODE_ENV === 'production') {
      // 为生产环境修改配置...
    } else {
      // 为开发环境修改配置...


    }
  },
  devServer: {
    proxy: {
        '/api': {
            target: 'http://c.m.163.com',  // target host
            ws: true,  // proxy websockets
            changeOrigin: true,  // needed for virtual hosted sites
            pathRewrite: {
                '^/api': ''  // rewrite path
            }
        },
    },  // 配置多个代理
  }
}
